package com.market.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author xd
 * @since 2024-03-26
 */
@Data
public class Comment implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 发表评论的用户id
     */
    private Integer userId;

    /**
     * 发表时间
     */
    private String time;

    /**
     * 文章/摊位id
     */
    private Integer thingId;

    /**
     * 类型，1是文章，2是摊位
     */
    private Integer type;

    /**
     * 0审核中，1审核已通过
     */
    private Integer state;

    @TableField(value = "nickName",exist = false)
    private String nickName;

    @TableField(value = "thingName",exist = false)
    private String thingName;

}
